﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MediaRecommender
{
    public partial class Site : System.Web.UI.MasterPage
    {
        public string CurrentUser { get; set; }
        protected string CurrentPassword { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            InitPage();
        }

        protected void InitPage()
        {
            CurrentUser = (string)Session["Username"];
            CurrentPassword = (string)Session["Password"];
            UserNameLabel.Text = CurrentUser;
        }

        protected void HomeButton_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("MediaSelect.aspx");
        }

        protected void MediaListButton_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("Medialist.aspx");
        }

        protected void FriendsListButton_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("Friendslist.aspx");
        }

        protected void RecommendationButton_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("Recommendation.aspx");
        }

        protected void PreferencesButton_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("Preferences.aspx");
        }
    }
}